package com.deep.product.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 二级分类传输对象
 *
 * @author Deep
 * @date 2022/1/25
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catalog2VO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 1级父分类ID
     */
    private String catalog1Id;
    /**
     * 2级分类ID
     */
    private String id;
    /**
     * 2级分类name
     */
    private String name;
    /**
     * 3级子分类集合
     */
    private List<Catalog3VO> catalog3List;

    /**
     * 三级分类Vo
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catalog3VO implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;
        /**
         * 2级父分类ID
         */
        private String catalog2Id;
        /**
         * 3级分类ID
         */
        private String id;
        /**
         * 3级分类name
         */
        private String name;
    }
}
